import tkinter as tk
window = tk.Tk()
window.title('my window')
window.geometry('500x400')
'''
#pack方法
tk.Label(window,text=1).pack(side='top')
tk.Label(window,text=1).pack(side='bottom')
tk.Label(window,text=1).pack(side='left')
tk.Label(window,text=1).pack(side='right')
'''
'''
#grid方法
for i in range(4):
    for j in range(3):
        tk.Label(window,text=1).grid(row=i,column=j,ipadx=10,ipady=20)#row横行数，column纵行数，ipadx,ipady为间隔距离
'''

# place方法
tk.Label(window, text=1).place(x=20, y=100, anchor='nw')  # anchor调角，x,y,调距离
window.mainloop()

